import request from '@/utils/request'

export function list(data) {
  return request({
    url: '/dev/data/room/list',
    method: 'get',
    data
  })
}

//
export function getroom(data) {
    return request({
      url: '/dev/data/area/fpointOptions2/300017',
      method: 'get',
      data
    })
  }

  export function createRoom(data) {
    return request({
      url: '/dev/data/room/create',
      method: 'post',
      data
    })
  }

  export function updateRoom(data) {
    return request({
      url: '/dev/data/room/update',
      method: 'post',
      data
    })
  }
  export function deleteRoom(id) {
    return request({
      url: '/dev/data/room/delete/' +id,
      method: 'post'
    })
  }